from django.template.context_processors import static
from django.urls import path

from kitchen import settings
from . import views as login_views

app_name = 'login'
urlpatterns = [
    # 用户认证
    path('register/', login_views.user_register, name='register'),
    path('login/', login_views.user_login, name='login'),
    path('logout/', login_views.user_logout, name='logout'),
    
    # 用户信息
    path('profile/', login_views.user_info, name='user_info'),
    path('profile/avatar/', login_views.upload_avatar, name='upload_avatar'),
    path('profile/password/', login_views.change_password, name='change_password'),
    path('profile/update/', login_views.update_user_info, name='update_user_info'),
]
